@import './params';

body {
  background-color: #FFFFFF;
  color: $fontColor;
}

.ivu-menu-vertical {
  flex-grow: 1;

  .ivu-menu-item {
    padding: 10px 24px;
    display: flex;
    align-items: center;

    .layout-text {
      margin-left: 0;
      line-height: 25px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .layout-icon {
      margin-left: 0;
      line-height: 25px;
      background: rgba(255, 255, 255, .7);
      width: 25px;
      color: $fontColor;
      text-align: center;
      text-transform: capitalize;
    }
  }
}

.ivu-breadcrumb-item-link {
  > .ivu-icon {
    line-height: 1.5;
  }
}

//表格 多选 图标边距修改
.ivu-table-cell {
  .ivu-checkbox-wrapper {
    margin-right: 0;
  }
}

.ivu-btn-text:focus {
  box-shadow: none;
}

.ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu):after {
  width: 2px !important;
}

.spin-icon-load {
  animation: ani-demo-spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes ani-demo-spin {
  from {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.client-link {
  color: #2d8cf0;
}

@if ($platform != 'darwin') {

}

//自定义scrollbar 效果不好
::-webkit-scrollbar {
  width: 2px;
  background-color: $bg-resource;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  //border-radius: 3px;
  background-color: $bg-resource;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  //border-radius: 3px;
  height: 2px;
  background-color: #C1C1C1;
}

//横向滑块设置
.horizontal::-webkit-scrollbar {
  height: 2px;
}

.horizontal::-webkit-scrollbar-thumb {
  width: 2px;
}

.drag {
  -webkit-app-region: drag;
}


.no-drag {
  -webkit-app-region: no-drag;
}
